package com.tx.zlm_replay.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.cglib.core.Local;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;

/**
 * @author tx
 * @version 1.0
 * @date 2024/3/18 15:58
 * @description: app and stream
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppAndStream implements Serializable {
    @Serial
    private static final long serialVersionUID = -1357854312025933728L;
    private String app;
    private String stream;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    public static AppAndStream newOne(String app,String stream,Date time){
        return new AppAndStream(app,stream,time);
    }
}
